package com.joysuch.wwyt.bp.enums;

/**
 * 企业基础信息-经济类型大类
 * @Author ZhangDong
 * @Date 2021/1/18 16:53
 */
public enum EconomicTypeBig {

    NZ("A","内资"),
    GATTZ("B","港、澳、台投资"),
    GWTZ("C", "国外投资"),
    QT("D","其他");

    private String type;
    private String name;

    EconomicTypeBig(String type, String name) {
        this.type = type;
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public static String getTypeByName(String name) {
        EconomicTypeBig[] values = EconomicTypeBig.values();
        for (EconomicTypeBig value : values) {
            if (value.name.equals(name)) {
                return value.type;
            }
        }
        return null;
    }

}
